package com.itboy.mall.pms.skuinfo.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * sku信息编辑对象 mall_sku_info
 *
 * @author itboy
 * @date 2021-08-08
 */
@Data
@ApiModel("sku信息编辑对象")
public class MallSkuInfoEditBo {


    /**
     * skuId
     */
    @ApiModelProperty("skuId")
    @NotNull(message = "skuId不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * spuId
     */
    @ApiModelProperty("spuId")
    @NotNull(message = "spuId不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;

    /**
     * sku名称
     */
    @ApiModelProperty("sku名称")
    @NotBlank(message = "sku名称不能为空")
    private String skuName;

    /**
     * sku介绍描述
     */
    @ApiModelProperty("sku介绍描述")
    private String skuDesc;

    /**
     * 所属分类id
     */
    @ApiModelProperty("所属分类id")
    @NotNull(message = "所属分类id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long catalogId;

    /**
     * 品牌id
     */
    @ApiModelProperty("品牌id")
    @NotNull(message = "品牌id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long brandId;

    /**
     * 默认图片
     */
    @ApiModelProperty("默认图片")
    private String skuDefaultImg;

    /**
     * 标题
     */
    @ApiModelProperty("标题")
    @NotBlank(message = "标题不能为空")
    private String skuTitle;

    /**
     * 副标题
     */
    @ApiModelProperty("副标题")
    private String skuSubtitle;

    /**
     * 价格
     */
    @ApiModelProperty("价格")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

    /**
     * 销量
     */
    @ApiModelProperty("销量")
    private Long saleCount;
}
